home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
comm
/
tcp
/
slip_call30b1e.lha
/
SLIPCall30Eng
/
Install_SLIPCall
next >
Wrap
Text File
|
1995-09-25
|
4KB
|
136 lines
;****************************************************************************;
; ;
; $VER: SLIPCall_Installation 3.0b1e (25.9.95) ;
; ;
; ⌐ 1995 Thomas Egrelius ;
; ;
; egge@canit.se / thomas@fotoslide.bmc.uu.se ;
; ;
;****************************************************************************;
(procedure :askdestination
(set #destination
(askdir
(prompt "Where would you like to put SLIPCall 3.0?\n"
"A drawer will be created.")
(help @askdir-help)
(default "SYS:")
)
)
)
(procedure :checksana
(if (<> (exists "ENVARC:Sana2" (noreq)) 2)
(makedir "ENVARC:Sana2")
)
)
(procedure :askdefault
(set #default
(askchoice
(prompt "Which provider do you use?")
(help "A predefined configuration will be saved "
"for your provider.\n\n"
"This file (S:SLIPCall.config) will be used by SLIPCall "
"when it's run from Workbench, or when no "
"argument for configuration is submitted.")
(choices "CanIt" "Algonet" "ABC-Klubben" "Oden Telecom" "Uppsala Universitet" "Other provider")
(default 0)
)
)
)
; -------------------------------------
; main()
; -------------------------------------
(if
(= (exists "AmiTCP:" (noreq)) 0)
(message "AmiTCP is not installed!\n\nAmiTCP must be installed for\nSLIPCall to work!")
)
(if
(= (exists "ZedREXX:" (noreq)) 0)
(message "ZedREXX is not installed!\n\nZedREXX must be installed for\nSLIPCall to work!")
)
(complete 0)
(message "Welcome to the installation of SLIPCall 3.0e!\n\n"
"SLIPCall requires installed AmiTCP and ZedREXX.\n\n"
"Also you have to have rexxserdev.library in LIBS:.")
(:askdestination)
(makedir (tackon #destination "SLIPCall") (infos))
(copyfiles
(source "")
(dest (tackon #destination "SLIPCall"))
(pattern "~(Install#?)")
)
(complete 40)
(if (= (exists "C:mbwatch" (noreq)) 0)
(
(copyfiles
(source "mbwatch/mbwatch")
(dest "C:")
(nogauge)
)
))
(:askdefault)
(if (= #default 0) (set #defaultstr "CanIt.config"))
(if (= #default 1) (set #defaultstr "Algonet.config"))
(if (= #default 2) (set #defaultstr "ABC.config"))
(if (= #default 3) (set #defaultstr "Oden.config"))
(if (= #default 4) (set #defaultstr "UU.config"))
(if (= #default 5) (set #defaultstr "SLIPCall.config"))
(copyfiles
(source (cat "config/" #defaultstr))
(dest "S:")
(newname "SLIPCall.config")
)
(complete 80)
(if (=
(askbool
(prompt "Do you use Phonebill?")
(help "If you answer 'Yes', installer will check if you have a"
" scanner for SLIPCall installed. If not, one will be installed.")
)
1)
(
(set #scanner
(askfile
(prompt "Choose the 'Scanner.config' used by Phonebill.")
(help @askfile-help)
(default "SYS:")
)
)
(if (run (cat "search " #scanner " SLIPCall"))
((textfile
(dest "T:InstallerTemp")
(include #scanner)
(include "Extras/phonebill.scanner"))
(copyfiles
(source "T:InstallerTemp")
(dest (pathonly #scanner))
(newname "Scanner.config"))
(delete "T:InstallerTemp")))))
(set @default-dest #destination)
(complete 100)
(message "Installation of SLIPCall 3.0 is finnished!\n\n"
"You can find it in " #destination)
(exit (quiet))